// import { resultSuccess } from '../../../mock/_util'
import { defHttp } from '../http'
import type { SignData, SignInModel } from '../model/auth'

export const signInApi = (data: SignData) =>
  defHttp.post<SignInModel>('/users/login-admin-by-account', { data })

// export const signOutApi = () =>
//   Promise.resolve(resultSuccess(null, { msg: '退出成功' }))
export const signOutApi = () => defHttp.post<SignInModel>('/users/logout')
